package com.sc.entity.dto;

import com.sc.entity.ImageBase;
import java.util.List;
/**
 * @Author: Sunk 673116067@qq.com
 * @Date: 2018/4/19 12:59
 * @Description:
 */
public class AddCartDTO extends ImageBase {

    protected Long productId;
    protected Boolean checked;
    protected Long productNum;
    //整个购物车列表
    protected List<AddCartDTO> list;
    protected String type;
    //选择地址
    protected Long addressId;
    //总金额
    protected Double subTotal;

    @Override
    public String toString() {
        return "AddCartDTO{" +
                "productId=" + productId +
                ", checked=" + checked +
                ", productNum=" + productNum +
                ", list=" + list +
                ", type='" + type + '\'' +
                ", addressId=" + addressId +
                ", subTotal=" + subTotal +
                '}';
    }

    public Double getSubTotal() {
        return subTotal;
    }

    public void setSubTotal(Double subTotal) {
        this.subTotal = subTotal;
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<AddCartDTO> getList() {
        return list;
    }

    public void setList(List<AddCartDTO> list) {
        this.list = list;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public Long getProductNum() {
        return productNum;
    }

    public void setProductNum(Long productNum) {
        this.productNum = productNum;
    }
}
